<?php
session_name("featherChat-".(dirname($_SERVER[PHP_SELF])));
session_start();
session_regenerate_id();

require 'functs.php';
require 'vars.php';

Page_startup($title,$version);

?>

<div>
	Please log-in<br />
	<form method="post" action="<?php echo $_GET[url]; ?>">
		<input type="text" name="user" /><br />
		<input type="password" name="pass" /><br />
<?php

		if (!empty($_POST['msg'])) { // This  is incase a user's login times out after he has loaded the message page and attempts to send a message.  It will ask him/her to log-in and then post the message
			echo "<input type=\"hidden\" name=\"msg\" value=\"".$_POST['msg']."\">";
		}

		?>Remember me: <input type="checkbox" name="remember" />
		<input type="submit" value="Go" />
	</form><a href="resetpass.php">Password Reset</a>
		
</div>

<?
if (isset($_GET[autherr])) {
	?><div class="error"><br />Invalid user or pass</div><?php
}

Page_shutdown();
